import * as React from 'react';
import {useParams, useMatch, useSearchParams, useLocation} from 'react-router-dom'

export const UCenter = (props) => {
    const loaction = useLocation()
    const params = useParams();
    console.log(loaction)
    console.log(props)
    return (<div>
        <h1>exact匹配规则
        </h1>
        <div>
            Hello Center {params.id},name {params.name}
        </div>
    </div>);
};
